<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <script>
            let a = [1, 3, 5, 7, 24, 32, 25, 48];
            let b = 0;
            for (let i = 0; i < a.length; i++) {
                b = b + a[i];
            }
            // console.log(a.length)
            console.log(b / a.length);
        </script>
    </body>
</html>
